﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000713 RID: 1811
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetHeartDialInfoScRsp : IMessage<GetHeartDialInfoScRsp>, IMessage, IEquatable<GetHeartDialInfoScRsp>, IDeepCloneable<GetHeartDialInfoScRsp>, IBufferMessage
	{
		// Token: 0x17001736 RID: 5942
		// (get) Token: 0x0600517F RID: 20863 RVA: 0x000DD5A4 File Offset: 0x000DB7A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetHeartDialInfoScRsp> Parser
		{
			get
			{
				return GetHeartDialInfoScRsp._parser;
			}
		}

		// Token: 0x17001737 RID: 5943
		// (get) Token: 0x06005180 RID: 20864 RVA: 0x000DD5AB File Offset: 0x000DB7AB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetHeartDialInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001738 RID: 5944
		// (get) Token: 0x06005181 RID: 20865 RVA: 0x000DD5BD File Offset: 0x000DB7BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetHeartDialInfoScRsp.Descriptor;
			}
		}

		// Token: 0x06005182 RID: 20866 RVA: 0x000DD5C4 File Offset: 0x000DB7C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetHeartDialInfoScRsp()
		{
		}

		// Token: 0x06005183 RID: 20867 RVA: 0x000DD5F0 File Offset: 0x000DB7F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetHeartDialInfoScRsp(GetHeartDialInfoScRsp other) : this()
		{
			this.dialogueInfoList_ = other.dialogueInfoList_.Clone();
			this.scriptInfoList_ = other.scriptInfoList_.Clone();
			this.eNELMHEDJII_ = other.eNELMHEDJII_.Clone();
			this.retcode_ = other.retcode_;
			this.unlockStatus_ = other.unlockStatus_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06005184 RID: 20868 RVA: 0x000DD65F File Offset: 0x000DB85F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetHeartDialInfoScRsp Clone()
		{
			return new GetHeartDialInfoScRsp(this);
		}

		// Token: 0x17001739 RID: 5945
		// (get) Token: 0x06005185 RID: 20869 RVA: 0x000DD667 File Offset: 0x000DB867
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<HeartDialDialogueInfo> DialogueInfoList
		{
			get
			{
				return this.dialogueInfoList_;
			}
		}

		// Token: 0x1700173A RID: 5946
		// (get) Token: 0x06005186 RID: 20870 RVA: 0x000DD66F File Offset: 0x000DB86F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<HeartDialScriptInfo> ScriptInfoList
		{
			get
			{
				return this.scriptInfoList_;
			}
		}

		// Token: 0x1700173B RID: 5947
		// (get) Token: 0x06005187 RID: 20871 RVA: 0x000DD677 File Offset: 0x000DB877
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<HNGOJHBPFEJ> ENELMHEDJII
		{
			get
			{
				return this.eNELMHEDJII_;
			}
		}

		// Token: 0x1700173C RID: 5948
		// (get) Token: 0x06005188 RID: 20872 RVA: 0x000DD67F File Offset: 0x000DB87F
		// (set) Token: 0x06005189 RID: 20873 RVA: 0x000DD687 File Offset: 0x000DB887
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700173D RID: 5949
		// (get) Token: 0x0600518A RID: 20874 RVA: 0x000DD690 File Offset: 0x000DB890
		// (set) Token: 0x0600518B RID: 20875 RVA: 0x000DD698 File Offset: 0x000DB898
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeartDialUnlockStatus UnlockStatus
		{
			get
			{
				return this.unlockStatus_;
			}
			set
			{
				this.unlockStatus_ = value;
			}
		}

		// Token: 0x0600518C RID: 20876 RVA: 0x000DD6A1 File Offset: 0x000DB8A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetHeartDialInfoScRsp);
		}

		// Token: 0x0600518D RID: 20877 RVA: 0x000DD6B0 File Offset: 0x000DB8B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetHeartDialInfoScRsp other)
		{
			return other != null && (other == this || (this.dialogueInfoList_.Equals(other.dialogueInfoList_) && this.scriptInfoList_.Equals(other.scriptInfoList_) && this.eNELMHEDJII_.Equals(other.eNELMHEDJII_) && this.Retcode == other.Retcode && this.UnlockStatus == other.UnlockStatus && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600518E RID: 20878 RVA: 0x000DD738 File Offset: 0x000DB938
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.dialogueInfoList_.GetHashCode();
			num ^= this.scriptInfoList_.GetHashCode();
			num ^= this.eNELMHEDJII_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.UnlockStatus != HeartDialUnlockStatus.Lock)
			{
				num ^= this.UnlockStatus.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600518F RID: 20879 RVA: 0x000DD7C0 File Offset: 0x000DB9C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005190 RID: 20880 RVA: 0x000DD7C8 File Offset: 0x000DB9C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005191 RID: 20881 RVA: 0x000DD7D4 File Offset: 0x000DB9D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			this.dialogueInfoList_.WriteTo(ref output, GetHeartDialInfoScRsp._repeated_dialogueInfoList_codec);
			this.eNELMHEDJII_.WriteTo(ref output, GetHeartDialInfoScRsp._repeated_eNELMHEDJII_codec);
			this.scriptInfoList_.WriteTo(ref output, GetHeartDialInfoScRsp._repeated_scriptInfoList_codec);
			if (this.UnlockStatus != HeartDialUnlockStatus.Lock)
			{
				output.WriteRawTag(72);
				output.WriteEnum((int)this.UnlockStatus);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005192 RID: 20882 RVA: 0x000DD860 File Offset: 0x000DBA60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.dialogueInfoList_.CalculateSize(GetHeartDialInfoScRsp._repeated_dialogueInfoList_codec);
			num += this.scriptInfoList_.CalculateSize(GetHeartDialInfoScRsp._repeated_scriptInfoList_codec);
			num += this.eNELMHEDJII_.CalculateSize(GetHeartDialInfoScRsp._repeated_eNELMHEDJII_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.UnlockStatus != HeartDialUnlockStatus.Lock)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.UnlockStatus);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005193 RID: 20883 RVA: 0x000DD8F0 File Offset: 0x000DBAF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetHeartDialInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.dialogueInfoList_.Add(other.dialogueInfoList_);
			this.scriptInfoList_.Add(other.scriptInfoList_);
			this.eNELMHEDJII_.Add(other.eNELMHEDJII_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.UnlockStatus != HeartDialUnlockStatus.Lock)
			{
				this.UnlockStatus = other.UnlockStatus;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005194 RID: 20884 RVA: 0x000DD973 File Offset: 0x000DBB73
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005195 RID: 20885 RVA: 0x000DD97C File Offset: 0x000DBB7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 50U)
				{
					if (num == 40U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 50U)
					{
						this.dialogueInfoList_.AddEntriesFrom(ref input, GetHeartDialInfoScRsp._repeated_dialogueInfoList_codec);
						continue;
					}
				}
				else
				{
					if (num == 58U)
					{
						this.eNELMHEDJII_.AddEntriesFrom(ref input, GetHeartDialInfoScRsp._repeated_eNELMHEDJII_codec);
						continue;
					}
					if (num == 66U)
					{
						this.scriptInfoList_.AddEntriesFrom(ref input, GetHeartDialInfoScRsp._repeated_scriptInfoList_codec);
						continue;
					}
					if (num == 72U)
					{
						this.UnlockStatus = (HeartDialUnlockStatus)input.ReadEnum();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04001FF7 RID: 8183
		private static readonly MessageParser<GetHeartDialInfoScRsp> _parser = new MessageParser<GetHeartDialInfoScRsp>(() => new GetHeartDialInfoScRsp());

		// Token: 0x04001FF8 RID: 8184
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001FF9 RID: 8185
		public const int DialogueInfoListFieldNumber = 6;

		// Token: 0x04001FFA RID: 8186
		private static readonly FieldCodec<HeartDialDialogueInfo> _repeated_dialogueInfoList_codec = FieldCodec.ForMessage<HeartDialDialogueInfo>(50U, HeartDialDialogueInfo.Parser);

		// Token: 0x04001FFB RID: 8187
		private readonly RepeatedField<HeartDialDialogueInfo> dialogueInfoList_ = new RepeatedField<HeartDialDialogueInfo>();

		// Token: 0x04001FFC RID: 8188
		public const int ScriptInfoListFieldNumber = 8;

		// Token: 0x04001FFD RID: 8189
		private static readonly FieldCodec<HeartDialScriptInfo> _repeated_scriptInfoList_codec = FieldCodec.ForMessage<HeartDialScriptInfo>(66U, HeartDialScriptInfo.Parser);

		// Token: 0x04001FFE RID: 8190
		private readonly RepeatedField<HeartDialScriptInfo> scriptInfoList_ = new RepeatedField<HeartDialScriptInfo>();

		// Token: 0x04001FFF RID: 8191
		public const int ENELMHEDJIIFieldNumber = 7;

		// Token: 0x04002000 RID: 8192
		private static readonly FieldCodec<HNGOJHBPFEJ> _repeated_eNELMHEDJII_codec = FieldCodec.ForMessage<HNGOJHBPFEJ>(58U, HNGOJHBPFEJ.Parser);

		// Token: 0x04002001 RID: 8193
		private readonly RepeatedField<HNGOJHBPFEJ> eNELMHEDJII_ = new RepeatedField<HNGOJHBPFEJ>();

		// Token: 0x04002002 RID: 8194
		public const int RetcodeFieldNumber = 5;

		// Token: 0x04002003 RID: 8195
		private uint retcode_;

		// Token: 0x04002004 RID: 8196
		public const int UnlockStatusFieldNumber = 9;

		// Token: 0x04002005 RID: 8197
		private HeartDialUnlockStatus unlockStatus_;
	}
}
